﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Core.Alias
{
    public class CSharpAlias
    {
        public static string GetAlias(string name)
        {
            string return_value = string.Empty;
            switch(name)
            {
                case "System.Boolean":
                    return_value = "bool";
                    break;
                case "System.Char":
                    return_value = "char";
                    break;
                case "System.Byte":
                    return_value = "byte";
                    break;
                case "System.SByte":
                    return_value = "sbyte";
                    break;
                case "System.UInt16":
                    return_value = "ushort";
                    break;
                case "System.UInt32":
                    return_value = "uint";
                    break;
                case "System.UInt64":
                    return_value = "ulong";
                    break;
                case "System.Int16":
                    return_value = "short";
                    break;
                case "System.Int32":
                    return_value = "int";
                    break;
                case "System.Int64":
                    return_value = "long";
                    break;
                case "System.Single":
                    return_value = "float";
                    break;
                case "System.Double":
                    return_value = "double";
                    break;
                case "System.String":
                    return_value = "string";
                    break;
                default:
                    return_value = name;
                    break;
            }
            return return_value;
        }
    }
}